package cn.linkey.rulelib.extevent;

import cn.linkey.rule.rule.LinkeyRule;
import cn.linkey.workflow.factory.BeanCtx;
import cn.linkey.workflow.wf.ProcessEngine;

import java.util.HashMap;

/**
 * @author alibao Y , walkwithdream@163.com
 * <p>createTime 2021-01-22 15:34 </p>
 * @version v1.0
 */
public class R_extevent_Itest implements LinkeyRule {

    @Override
    public String run(HashMap<String, Object> params) throws Exception {


        System.out.println("---------");
        ProcessEngine wf = BeanCtx.getLinkeywf();
        System.out.println(wf.getDocument().toJson());

        return "";
    }
}
